package jaux.tank.admin;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.PropertySource;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.web.filter.FormContentFilter;

/**
 * SpringBoot方式启动类
 *
 * @Date 2017/5/21 12:06
 */
@SpringBootApplication(scanBasePackages = "jaux.tank")
@PropertySource("classpath:/application-tank.properties")
@EnableCaching
@EntityScan(basePackages="jaux.tank.bean.entity")
@EnableJpaRepositories(basePackages= "jaux.tank.dao")
@Import(FormContentFilter.class)
public class AdminApplication {

    protected static final  Logger logger = LoggerFactory.getLogger(AdminApplication.class);


    public static void main(String[] args) {
        SpringApplication.run(AdminApplication.class, args);
        logger.info("AdminApplication is success!");
    }
}
